package com.fowo.api.model.supplier.review;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商评审任务 导入导出辅助模型 */
@Getter
@Setter
public class SupplierReviewExcelPo {

  @NotNull(message = "评审单号不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*评审单号")
  private String reviewId;

  @NotBlank(message = "标题不能为空")
  @Size(max = 50, message = "标题长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*标题")
  private String title;

  @NotBlank(message = "企业名称不能为空")
  @Size(max = 50, message = "企业名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*企业名称")
  private String enterpriseName;

  @NotNull(message = "系统指标评分不能为空")
  @ExcelProperty(value = "*系统指标评分")
  private Integer systemReviewScoring;

  @NotNull(message = "人工指标评分不能为空")
  @ExcelProperty(value = "*人工指标评分")
  private Integer peopleReviewScoring;

  @ExcelProperty(value = "综合评分")
  private Integer multipleReviewScoring;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "评审人")
  private String doUserName;

  @ExcelIgnore
  @ExcelProperty(value = "评审人")
  private List<Long> doUser;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "评审时间")
  private java.util.Date doTime;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "状态")
  private String status;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remark;
}
